package com.mycompany.myapp.service.mapper;

import com.mycompany.myapp.domain.StudentScore;
import com.mycompany.myapp.service.dto.StudentScoreDTO;
import org.mapstruct.*;

/**
 * Mapper for the entity {@link StudentScore} and its DTO {@link StudentScoreDTO}.
 */
@Mapper(componentModel = "spring", uses = { StudentMapper.class, TeacherMapper.class, UserClassMapper.class })
public interface StudentScoreMapper extends EntityMapper<StudentScoreDTO, StudentScore> {
    @Mapping(target = "student", source = "student", qualifiedByName = "id")
    @Mapping(target = "teacher", source = "teacher", qualifiedByName = "id")
    @Mapping(target = "userClass", source = "userClass", qualifiedByName = "id")
    StudentScoreDTO toDto(StudentScore s);
}
